# -*- conding:UTF-8 -*-

'''
@ Project: funny
@ File: screen.py
@ Author: 韩成瑾
@ Date：2022/10/17 21:10

'''


#最简单的微信刷屏程序
import time
from pynput import mouse, keyboard
time.sleep(5)                               #预留5秒用于准备
m_mouse = mouse.Controller()
m_keyboard = keyboard.Controller()          #创建鼠标及键盘

#请确保鼠标在聊天框内
m_mouse.click(mouse.Button.left)            #点击鼠标左键，这里可要可不要

for a in range(10000):                         #这里输入轰炸的次数
    m_keyboard.type('1')             #这里输入你要刷屏的字
    m_keyboard.press(keyboard.Key.enter)    #按下enter发送--CSDN--
    m_keyboard.release(keyboard.Key.enter)  #释放enter
    time.sleep(0.05)






